package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsProject;
import org.jeecg.modules.ws.mapper.WsProjectMapper;
import org.jeecg.modules.ws.service.IWsProjectService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 债券项目信息管理
 * @Author: jeecg-boot
 * @Date:   2025-03-27
 * @Version: V1.0
 */
@Service
public class WsProjectServiceImpl extends ServiceImpl<WsProjectMapper, WsProject> implements IWsProjectService {

    @Override
    public WsProject getByProjectCode(String projectCode) {
        LambdaQueryWrapper<WsProject> query = Wrappers.lambdaQuery(WsProject.class);
        query.eq(WsProject::getProjectCode, projectCode);
        return getOne(query);
    }
}
